-
Notifications
You must be signed in to change notification settings - Fork 150
Impact calc return impact forecast #1179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
We should raise an error if |
…saving impact matrix
|
TODO:
|
…/CLIMADA-project/climada_python into impactCalc_return_impactForecast
…/CLIMADA-project/climada_python into impactCalc_return_impactForecast
climada/engine/impact_forecast.py
Outdated
|
|
||
| @at_event.setter | ||
| def at_event(self, value): | ||
| """Set the total exposure value close to a hazard""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does that mean? This is not what at_event does.
| """Set the total exposure value close to a hazard""" | |
| """Set the total exposure value close to a hazard""" |
climada/engine/impact_forecast.py
Outdated
| @at_event.setter | ||
| def at_event(self, value): | ||
| """Set the total exposure value close to a hazard""" | ||
| LOGGER.warning("at_event for forecasts is not yet implemented.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think at_event is implemented for forecasts. This is confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll rewrite it a bit
| aai_agg = np.sum(exposure.gdf["value"]) * hazard.frequency[0] | ||
| eai_exp = np.ones(exposure.gdf.shape[0]) * hazard.frequency[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supposed to be nans no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the ImpactForecast tests, yes:
| def impact_calc_forecast(self, impact_calc): |
Changes proposed in this PR:
This PR fixes #1138 #1135
PR Author Checklist
develop)PR Reviewer Checklist